home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
POETRY.DIR
/
00009_Script_bt
< prev
next >
Wrap
Text File
|
1995-11-15
|
1KB
|
40 lines
-- parent script
-- button trios
property myChannel, myNormal, myRollover, myPressed, myScript
on birth me,sp, no, ro, pr,sc
set myRollover to (the number of cast ro)
set myPressed to (the number of cast pr)
set myNormal to (the number of cast no)
set myChannel to integer(sp)
set myScript to sc
return me
end
on rollo me
if the castNum of sprite myChannel = myRollover then exit
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myRollover
updateStage
-- puppetSprite myChannel, false
end
on press me
if the castNum of sprite myChannel = myPressed then exit
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myPressed
updateStage
puppetSprite myChannel, false
end
on norm me
if the castNum of sprite myChannel = myNormal then exit
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myNormal
updateStage
puppetSprite myChannel, false
end
on doScript me
--put "doScript"&&myChannel
do myScript
end